<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
	function fii(){
				var fruits=["苹果","香蕉","凤梨","李子","大枣","菠萝蜜"]
				var a=Math.ceil(Math.random()*6)-1;
				document.write("你领取到一个"+fruits[a]);

			}
		
		</script>
		<input type="button" onclick="fii()" value="领水果"/>
	</body>
</html>
